{layout name="public/layout" /}

{include file='yxnavbar'}
{include file='theme_menu'}
<div class="clearfix">
    {if $_G['isfounder']}
        <div class="panel panel-default">
            {if !empty($timetxt)}
            <div class="panel-heading" style="background: #F0E68C;text-align: center;">{$timetxt}</div>
            {/if}
            <div class="panel-body">
                <ul class="nav nav-pills" style="float: left">
                    <li role="presentation" class="active"><a href="#basicinfo" aria-controls="basicinfo" role="tab" data-toggle="pill">基本信息</a></li>
                    <li role="presentation" class=""><a href="#module_set" aria-controls="module_set" role="tab" data-toggle="pill">功能设置</a></li>
                    {if $system['softmode']!=1 || !isset($system['softmode'])}
                    <li role="presentation" class=""><a href="#payset" aria-controls="payset" role="tab" data-toggle="pill">H5{php echo $is_not_h5==1?'【不可用】':'参数';}</a></li>
                    {/if}
                    {if $system['softmode']!=0 || !isset($system['softmode'])}
                    <li role="presentation" class=""><a href="#xcx" aria-controls="xcx" role="tab" data-toggle="pill">小程序</a></li>
                    {/if}
                    <li role="presentation" class=""><a href="#oem" aria-controls="oem" role="tab" data-toggle="pill">私人定制</a></li>
                    <li role="presentation" class=""><a href="#mbxx" aria-controls="mbxx" role="tab" data-toggle="pill">模版消息</a></li>
                    <li role="presentation" class=""><a href="#hddr" aria-controls="hddr" role="tab" data-toggle="pill">活动跳转</a></li>
                </ul>
            </div>
        </div>

    <form id="theform" class="form form-horizontal" action="" enctype ="multipart/form-data" method="post">
        <div class="tab-content" style="">
            <div class="tab-pane active" id="basicinfo">
                <div class="panel panel-default " role="tabpanel"  style="">
                    <div class="panel-heading">基本设置</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">访问方式</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="softmode" id="inlineRadio1" value="0" {if $system['softmode'] != '1' && $system['softmode'] != '2' && $is_not_h5!=1 }checked="checked"{/if}{php echo $is_not_h5==1?' disabled':'';}> H5
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="softmode" id="inlineRadio1" value="1" {if $system['softmode'] == '1' || $is_not_h5==1}checked="checked"{/if}> 小程序
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="softmode" id="inlineRadio1" value="2" {if $system['softmode'] == '2'}checked="checked"{/if}{php echo $is_not_h5==1?' disabled':'';}> H5+小程序{php echo $is_not_h5==1?'<span style="color: red">【此服务器不可使用H5】</span>':'';}
                                </label>

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">软件版本</label>
                            <div class="col-sm-2 col-xs-12">
                                <select name="version" >
                                    {loop $h5_list $index $row}
                                    {if $row['type']!=3 || $system['version'] == $row['version']}
                                    <option value="{$row['version']}" {if $system['version'] == $row['version'] }selected="selected"{/if}>{$row['version']}【{$version_type[$row['type']]}】</option>
                                    {php $system['version'] == $row['version']?$version_dec =$row['dec']:'';}
                                    {/if}
                                    {/loop}
                                </select>
                            </div>
                            <div class="col-sm-6 col-xs-12">
                                {php echo str_replace(PHP_EOL,'<br>',$version_dec);}
                            </div>
                        </div>
                        {if ($system['s']['domain1']=="www.yixuan.net" || DOMAIN0=="19.yixuan.net") && DOMAIN0 != "17.yixuan.net" && DOMAIN0 != "18.yixuan.net" }
<!--                        <div class="form-group">-->
<!--                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">公众平台模式</label>-->
<!--                            <div class="col-sm-8 col-xs-12">-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="gongzhong" id="inlineRadio1" value="0" {if $system['gongzhong'] == '0'}checked="checked"{/if}> 易宣公众平台-->
<!--                                </label>-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="gongzhong" id="inlineRadio2" value="1" {if $system['gongzhong'] =='1'}checked="checked"{/if}> 客户公众平台-->
<!--                                </label>-->
<!--                            </div>-->
<!--                        </div>-->
                        <input type="hidden" name="gongzhong" value="1" />
                        {else}
                        <input type="hidden" name="gongzhong" value="0" />
                        {/if}
                        {if ($system['s']['domain1']=="www.yixuan.net" || DOMAIN0=="19.yixuan.net")  && DOMAIN0 != "17.yixuan.net" && DOMAIN0 != "18.yixuan.net" }
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label"><span style="color: #ff0000">*</span>分享+授权域名1</label>
                            <div class="col-sm-4 col-xs-6">
                                <input type="text" class="form-control"  placeholder="" name="domainhead1"  value="{$system['domainhead1']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">分享+授权域名2</label>
                            <div class="col-sm-4 col-xs-6">
                                <input type="text" class="form-control"  placeholder="" name="domainhead2"  value="{$system['domainhead2']}">
                            </div>
                            <div class="col-sm-4 col-xs-6">
                                <input type="checkbox" name="domainpingbi2" id="inlineRadio2" value="1" {if $system['domainpingbi2'] == '1'}checked="checked"{/if}> 朋友圈已屏蔽
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label"><span style="color: #ff0000">*</span>分享域名3</label>
                            <div class="col-sm-4 col-xs-6">
                                <input type="text" class="form-control"  placeholder="" name="domainhead3"  value="{$system['domainhead3']}">
                            </div>
                            <div class="col-sm-4 col-xs-6">
                                <input type="checkbox" name="domainpingbi3" id="inlineRadio3" value="1" {if $system['domainpingbi3'] == '1'}checked="checked"{/if}> 朋友圈已屏蔽
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">不可用域名</label>
                            <div class="col-sm-8 col-xs-12">
                                <input type="text" class="form-control"  placeholder="" name="domainhead4"  value="{$system['domainhead4']}">
                                <span class="help-block">被封杀或不用的老域名,会自动跳转到上方新域名; 例如：a.baidu.com,sdfa.sina.cn</span>
                            </div>

                        </div>
                        {/if}
                        {if $system['softmode']!=1 || !isset($system['softmode'])}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">软件模式</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="ruanjian" id="inlineRadio2" value="2" {if $system['ruanjian'] =='2'}checked="checked"{/if}> 2020版
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="ruanjian" id="inlineRadio1" value="0" {if $system['ruanjian'] == '0'}checked="checked"{/if}> 2019版
                                </label>
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="ruanjian" id="inlineRadio1" value="4" {if $system['ruanjian'] == '4'}checked="checked"{/if}> 拼团2个团-->
<!--                                </label>-->


                                <label class="radio-inline">
                                    <input type="radio" name="ruanjian" id="inlineRadio1" value="1" {if $system['ruanjian'] == '1'}checked="checked"{/if}> 微团
                                </label>
                            </div>
                        </div>
                        {/if}
                        {if $system['softmode']!=0 || !isset($system['softmode'])}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">软件模式</label>
                            <div class="col-sm-8 col-xs-12">
                                {if $system['softmode']==1}
                                <label class="radio-inline">
                                    <input type="radio" name="ruanjian" id="inlineRadio2" value="2" {if $system['ruanjian'] == 2}checked="checked"{/if}> 拼团2020
                                </label>
                                {/if}
                                <label class="radio-inline">
                                    <input type="radio" name="ruanjian" id="inlineRadio2" value="5" {if $system['ruanjian'] == 5 && $system['is_multiple_bargain'] != 1}checked="checked"{/if}> 砍价
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="ruanjian" id="inlineRadio2" value="9" {if $system['ruanjian'] == 5 && $system['is_multiple_bargain'] == 1}checked="checked"{/if}> 多产品砍价
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="ruanjian" id="inlineRadio1" value="6" {if $system['is_mystery_boxes'] == 1}checked="checked"{/if}> 盲盒
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="ruanjian" id="inlineRadio1" value="8" {if $system['is_mystery_boxes_feichi'] == 1}checked="checked"{/if}> 飞驰盲盒
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="ruanjian" id="inlineRadio1" value="7" {if $system['is_mother_boxes'] == 1}checked="checked"{/if}> 妈妈宝盒
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="ruanjian" id="inlineRadio2" value="10" {if $system['ruanjian'] == 10}checked="checked"{/if}> 微客
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">小程序菜单</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="softmenu" id="inlineRadio1" value="0" {if $system['softmenu'] == 0}checked="checked"{/if}> 默认
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="softmenu" id="inlineRadio1" value="1" {if $system['softmenu'] == 1}checked="checked"{/if}> 盲盒
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="softmenu" id="inlineRadio1" value="3" {if $system['softmenu'] == 3}checked="checked"{/if}> 飞驰盲盒
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="softmenu" id="inlineRadio1" value="2" {if $system['softmenu'] == 2}checked="checked"{/if}> 妈妈宝盒
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="softmenu" id="inlineRadio1" value="4" {if $system['softmenu'] == 4}checked="checked"{/if}> 代言
                                </label>
                            </div>
                        </div>
                        {/if}

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">异业配置</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="softstyle" id="inlineRadio1" value="0" {if $system['softstyle']==0}checked="checked"{/if}> 不开启
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="softstyle" id="inlineRadio1" value="101" {if $system['softstyle']==101}checked="checked"{/if}> 异业:默认
                                </label>
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="softstyle" id="inlineRadio1" value="1" {if $system['softstyle']==1}checked="checked"{/if}> 拼团:海轮-->
<!--                                </label>-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="softstyle" id="inlineRadio2" value="3" {if $system['softstyle']==3}checked="checked"{/if}> 拼团:五卡-->
<!--                                </label>-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="softstyle" id="inlineRadio2" value="5" {if $system['softstyle']==5}checked="checked"{/if}> 拼团:全国加盟-->
<!--                                </label>-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="softstyle" id="inlineRadio2" value="9" {if $system['softstyle']==9}checked="checked"{/if}> 蜗牛文化2020_1-->
<!--                                </label>-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="softstyle" id="inlineRadio2" value="10" {if $system['softstyle']==10}checked="checked"{/if}> 蜗牛文化2020_2-->
<!--                                </label>-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="softstyle" id="inlineRadio1" value="102" {if $system['softstyle']==102}checked="checked"{/if}> 异业:立剑-->
<!--                                </label>-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="softstyle" id="inlineRadio1" value="106" {if $system['softstyle']==106}checked="checked"{/if}> 异业:立剑多商家-->
<!--                                </label>-->
                                <label class="radio-inline">
                                    <input type="radio" name="softstyle" id="inlineRadio2" value="104" {if $system['softstyle']==104}checked="checked"{/if}> 异业:多商家
                                </label>
                                {if $system['softmode']!=1 || !isset($system['softmode'])}
                                <label class="radio-inline">
                                    <input type="radio" name="softstyle" id="inlineRadio2" value="108" {if $system['softstyle']==108}checked="checked"{/if}> 异业:贝莱亲子
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="softstyle" id="inlineRadio2" value="109" {if $system['softstyle']==109}checked="checked"{/if}> 异业:教育培训
                                </label>
                                {/if}

                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default " role="tabpanel"  style="">
                    <div class="panel-heading">红包设置</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">是否启用红包</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="send_mode" id="send_mode" value="0" {if $system['send_mode'] == 0}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="send_mode" id="send_mode" value="2" {if $system['send_mode'] == 2}checked="checked"{/if}> 启用：企业付款到零钱
                                </label>
                                {if $system['s']['domain1']=="www.yixuan.net"  || DOMAIN0=="5.yixuan.net" || DOMAIN0=="6.yixuan.net" || DOMAIN0=="7.yixuan.net" || DOMAIN0=="8.yixuan.net" || DOMAIN0=="9.yixuan.net"}
                                <label class="radio-inline">
                                    <input type="radio" name="send_mode" id="send_mode" value="1" {if $system['send_mode'] == 1}checked="checked"{/if}> <span style="font-weight: bold">启用：分账【客户90%以上使用此模式】</span>
                                </label>
                                {/if}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">红包模式</label>
                            <div class="col-sm-8 col-xs-12 checkbox">
                                <label class="radio-inline">
                                    <input type="radio" name="fenxiao01" id="inlineRadio2" value="0" {if $system['fenxiao01'] == '0'}checked="checked"{/if}> 禁用分销
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="fenxiao01" id="inlineRadio2" value="1" {if $system['fenxiao01'] == '1'}checked="checked"{/if}> 一级分销
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="fenxiao01" id="inlineRadio2" value="2" {if $system['fenxiao01'] == '2'}checked="checked"{/if}> 二级分销
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="fenxiao01" id="inlineRadio2" value="3" {if $system['fenxiao01'] == '3'}checked="checked"{/if}> 三级分销
                                </label>
                                <label class="radio-inline">
                                    <input name="fenxiao04" type="checkbox" value="1" {if $system['fenxiao04'] == '1'}checked="checked"{/if}> 转发红包
                                </label>
                                <label class="radio-inline">
                                    <input name="fenxiao07" type="checkbox" value="1" {if $system['fenxiao07'] == '1'}checked="checked"{/if}> 摇一摇红包
                                </label>
                                <label class="radio-inline">
                                    <input name="fenxiao071" type="checkbox" value="1" {if $system['fenxiao071'] == '1'}checked="checked"{/if}> 摇一摇礼品
                                </label>
                                <label class="radio-inline">
                                    <input name="fenxiao06" type="checkbox" value="1" {if $system['fenxiao06'] == '1'}checked="checked"{/if}> 员工提成
                                </label>
                                <label class="radio-inline">
                                    <input name="fenxiao05" type="checkbox" value="1" {if $system['fenxiao05'] == '1'}checked="checked"{/if}> 阅读红包
                                </label>
                                <label class="radio-inline">
                                    <input name="fenxiao08" type="checkbox" value="1" {if $system['fenxiao08'] == '1'}checked="checked"{/if}> 额外红包
                                </label>
                                <label class="radio-inline">
                                    <input name="fenxiao09" type="checkbox" value="1" {if $system['fenxiao09'] == 1}checked="checked"{/if}> 团长红包
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">红包佣金发放规则</label>
                            <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
                                <label class="radio-inline">
                                    <input name="autored" value="0" {if $system['autored']==0} checked="checked"{/if} type="radio"> 后台手工发放
                                </label>
                                <label class="radio-inline">
                                    <input name="autored" value="1" {if $system['autored']==1} checked="checked"{/if} type="radio"> 自动发放
                                </label>
                                <label class="radio-inline">
                                    <input name="autored" value="2" {if $system['autored']==2} checked="checked"{/if} type="radio"> 客户提现：达到设定金额可提现
                                </label>
                                <label class="radio-inline">
                                    <input name="autored" value="3" {if $system['autored']==3} checked="checked"{/if} type="radio"> 不可提现
                                </label>
                                <span class="help-block">建议审核发放，若启用自动发放一定要勤观察红包数据，发现异常及时联系技术处理</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel tab-pane " role="tabpanel" id="module_set">
                <div class="panel panel-default " role="tabpanel"  style="">
                    <div class="panel-heading">常用设置</div>
                    <div class="panel-body">
                        {if $system['softmode']!=1 || !isset($system['softmode'])}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">H5手机管理后台</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="h5work" id="inlineRadio1" value="0" {if $system['h5work']!= '1' }checked="checked"{/if}> 老版本
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="h5work" id="inlineRadio1" value="1" {if $system['h5work'] == '1'}checked="checked"{/if}> 新版本
                                </label>
                            </div>
                        </div>
                        {/if}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">员工成交提醒关注</label>
                            <div class="col-sm-8 col-xs-12">
                                <select id="tixing" name="tixing" >
                                    <option value="2" {if $system['tixing'] == 2 && $system['tixing_uni']==0}selected="selected"{/if}>禁用</option>
                                    {if $system['s']['domain1']=="www.yixuan.net" || DOMAIN0=="19.yixuan.net"}
                                    <option value="3" {if $system['tixing'] == 3 && $system['tixing_uni']==0}selected="selected"{/if}>客户公众号</option>
                                    {/if}
                                    <option value="1" {if $system['tixing'] == 1 && $system['tixing_uni']==0}selected="selected"{/if}>易宣平台</option>
                                    {loop $uni_account $row}
                                    <option value="{$row['uniacid']}" {if $system['tixing_uni'] == $row['uniacid']}selected="selected"{/if}> {$row['name']}</option>
                                    {/loop}
                                </select>
                                {if $system['s']['domain1']=="www.yixuan.net" || DOMAIN0=="19.yixuan.net"}
                                <span class="help-block">客户公众号须【设置与开发】【基本配置】【服务器配置】配置并启用，还需开通模版消息</span>
                                {/if}
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">修改推荐人</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="tuijianren" id="inlineRadio1" value="0" {if $system['tuijianren'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="tuijianren" id="inlineRadio1" value="1" {if $system['tuijianren'] == '1'}checked="checked"{/if}> 仅易宣工作人员
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="tuijianren" id="inlineRadio1" value="2" {if $system['tuijianren'] == '2'}checked="checked"{/if}> 客户电脑版后台
                                </label>
                                <span class="help-block">没有特殊情况，不建议开启，容易造成分销红包错乱</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">预售模式</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="ispresale" id="inlineRadio1" value="0" {if $system['ispresale'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="ispresale" id="inlineRadio1" value="1" {if $system['ispresale'] == '1'}checked="checked"{/if}> 启用
                                </label>
                                <span class="help-block">支持H5+小程序，仅支持：易宣2020和飞驰，到达一定时间自动切换页面进行补余款；需加功能费500元</span>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">底部按扭多价格支付</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="bottom_jiage" id="inlineRadio1" value="0" {if $system['bottom_jiage'] != 1 && $system['bottom_jiage'] != 2 }checked="checked"{/if}> 1个价格（默认）
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="bottom_jiage" id="inlineRadio1" value="1" {if $system['bottom_jiage'] == '1' || $system['system'] == '42'}checked="checked"{/if}> 2个价格
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="bottom_jiage" id="inlineRadio1" value="2" {if $system['bottom_jiage'] == '2' || $system['system'] == '43'}checked="checked"{/if}> 3个价格
                                </label>

                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">多选支付</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="selecet_pay" id="inlineRadio1" value="0" {if $system['selecet_pay'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="selecet_pay" id="inlineRadio1" value="1" {if $system['selecet_pay'] == '1'}checked="checked"{/if}> 多选与单选均可
                                </label>
                                <span class="help-block">例如：婚纱、儿童不同价格，但是团购人数一样，3人团我可以团婚纱也可以团儿童；借用表单5</span>
                            </div>
                        </div>

<!--                        <div class="form-group">-->
<!--                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">支付页选择多价格:<span style="color: red;">即将下架</span></label>-->
<!--                            <div class="col-sm-8 col-xs-12">-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="jiage" id="inlineRadio1" value="0" {if $system['jiage'] != 1 && $system['jiage'] != 2 }checked="checked"{/if}> 1个价格（默认）-->
<!--                                </label>-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="jiage" id="inlineRadio1" value="1" {if $system['jiage'] == '1'}checked="checked"{/if}> 2个价格-->
<!--                                </label>-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="jiage" id="inlineRadio1" value="2" {if $system['jiage'] == '2'}checked="checked"{/if}> 3个价格-->
<!--                                </label>-->
<!--                                <span class="help-block">例如：婚纱、儿童不同价格，但是团购人数一样，3人团我可以团婚纱也可以团儿童；仅限2019版</span>-->
<!--                            </div>-->
<!--                        </div>-->

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">点亮图标</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="isdianliang" id="inlineRadio1" value="0" {if $system['isdianliang'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="isdianliang" id="inlineRadio1" value="1" {if $system['isdianliang'] == '1'}checked="checked"{/if}> 启用
                                </label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel panel-default " role="tabpanel"  style="">
                    <div class="panel-heading">功能设置</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">客户代理</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="selling_agent" id="inlineRadio1" value="0" {if $system['selling_agent'] != '1' && $system['teammax'] != '2'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="selling_agent" id="inlineRadio1" value="1" {if $system['selling_agent'] == '1'}checked="checked"{/if}> 启用
                                </label>
                                <span class="help-block">客户代理：员工下设代理，代理成交的和员工直接有关；代理可以拥有不同的分销；</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">选择礼物/商家</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="gift" id="inlineRadio1" value="0" {if $system['gift'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="gift" id="inlineRadio1" value="1" {if $system['gift'] == '1'}checked="checked"{/if}> 启用
                                </label>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">翻牌抽奖</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="fanpai" id="inlineRadio1" value="0" {if $system['fanpai'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="fanpai" id="inlineRadio1" value="1" {if $system['fanpai'] == '1'}checked="checked"{/if}> 启用
                                </label>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">开宝箱礼品</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="isboxgift" id="inlineRadio1" value="0" {if $system['isboxgift'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="isboxgift" id="inlineRadio1" value="1" {if $system['isboxgift'] == '1'}checked="checked"{/if}> 启用
                                </label>
                                <span class="help-block">支持H5，仅支持：飞驰；打开链接弹出宝箱，点击开箱，则会随机弹出礼品；在表单设置中配置</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">积分模式</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="isCommPoints" id="inlineRadio1" value="0" {if $system['isCommPoints'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="isCommPoints" id="inlineRadio1" value="1" {if $system['isCommPoints'] == '1'}checked="checked"{/if}> 启用
                                </label>
                                <span class="help-block">支持H5->YX2020;分销的钱数改为积分数</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">纯表单功能</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="isform" id="inlineRadio1" value="0" {if $system['isform'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="isform" id="inlineRadio1" value="1" {if $system['isform'] == '1'}checked="checked"{/if}> 启用
                                </label>
                                <span class="help-block">纯表单页面，只收集客户资料的功能</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">成交发送二维码</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="qrlist" id="inlineRadio1" value="0" {if $system['qrlist'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="qrlist" id="inlineRadio1" value="1" {if $system['qrlist'] == '1'}checked="checked"{/if}> 启用
                                </label>
                                <span class="help-block">可用于成交后进群，也可用于成交后发送制作相册等二维码</span>
                            </div>
                        </div>
                        {if $system['is_multiple_merchants']}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">异业联系电话</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="multiple_merchants_mobile" id="inlineRadio1" value="0" {if $system['multiple_merchants_mobile'] != '1' && $system['multiple_merchants_mobile'] != '2'}checked="checked"{/if}> 显示主办方
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="multiple_merchants_mobile" id="inlineRadio1" value="1" {if $system['multiple_merchants_mobile'] == '1'}checked="checked"{/if}> 支付凭证员工所属商家的联系方式+只显示底部所属商家
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="multiple_merchants_mobile" id="inlineRadio1" value="2" {if $system['multiple_merchants_mobile'] == '2'}checked="checked"{/if}> 支付凭证员工所属商家的联系方式+底部所有商家
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="multiple_merchants_mobile" id="inlineRadio1" value="3" {if $system['multiple_merchants_mobile'] == '3'}checked="checked"{/if}> 支付凭证员工所属商家的联系方式+底部所有商家+员工信息
                                </label>
                            </div>
                        </div>
                        {/if}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">活动首图海报</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="isheadposter" id="inlineRadio1" value="0" {if $system['isheadposter'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="isheadposter" id="inlineRadio1" value="1" {if $system['isheadposter'] == '1'}checked="checked"{/if}> 启用
                                </label>
                            </div>
                        </div>
                        {if $system['softmode']!=0 || !isset($system['softmode'])}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">圣诞节主题</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="ischristmas" id="inlineRadio1" value="0" {if !$system['ischristmas'] }checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="ischristmas" id="inlineRadio1" value="1" {if $system['ischristmas'] == '1'}checked="checked"{/if}> 圣诞树+菜单
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="ischristmas" id="inlineRadio1" value="2" {if $system['ischristmas'] == '2'}checked="checked"{/if}> 菜单
                                </label>
                                <span class="help-block">仅支持小程序</span>
                            </div>
                        </div>
                        {/if}
                    </div>
                </div>

                <!--                插件功能列表-->
                <div class="panel panel-default " role="tabpanel"  style="">
                    <div class="panel-heading">插件功能设置</div>
                    <div class="panel-body">
                        {$PluginsList}
                        {if $system['softmode']!=0 || !isset($system['softmode'])}
                        <div class="form-group"><label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">线上预约</label>
                            <div class="col-sm-8 col-xs-12"><label class="radio-inline"><input type="radio" name="is_shop_plan" id="inlineRadio1" value="0" {if $system['is_shop_plan'] != '1'}checked="checked"{/if}> 关闭</label>
                                <label class="radio-inline"><input type="radio" name="is_shop_plan" id="inlineRadio1" value="1" {if $system['is_shop_plan'] == '1'}checked="checked"{/if}> 开启</label>
                            </div>
                        </div>
                        {/if}

                        <div class="form-group"><label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">贝莱样式功能2</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline"><input type="radio" name="beilai_style" id="inlineRadio1" value="0" {if $system['beilai_style'] != '1'}checked="checked"{/if}> 关闭</label>
                                <label class="radio-inline"><input type="radio" name="beilai_style" id="inlineRadio1" value="1" {if $system['beilai_style'] == '1'}checked="checked"{/if}> 开启</label>
                            </div>
                        </div>
                        {if $system['is_multiple_merchants']}
                        <div class="form-group"><label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">异业多次多产品核销</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline"><input type="radio" name="mulit_products"  value="0" {if $system['mulit_products'] != '1'}checked="checked"{/if}> 关闭</label>
                                <label class="radio-inline"><input type="radio" name="mulit_products"  value="1" {if $system['mulit_products'] == '1'}checked="checked"{/if}> 开启</label>
                            </div>
                        </div>
                        {/if}
                        {if $system['softmode']!=0 || !isset($system['softmode'])}
                        <div class="form-group"><label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">红包雨</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="redrain" id="inlineRadio1" value="0" {if !$system['redrain'] }checked="checked"{/if}> 关闭
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="redrain" id="inlineRadio1" value="1" {if $system['redrain'] == '1'}checked="checked"{/if}> 抵扣
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="redrain" id="inlineRadio1" value="2" {if $system['redrain'] == '2'}checked="checked"{/if}> 提现
                                </label>
                            </div>
                        </div>
                        {/if}
                        <!--			易宣通用优惠券设置-->
                        <div class="form-group">
                            <label class="col-sm-2 col-xs-12 control-label">优惠券</label>
                            <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
                                <label class="radio-inline">
                                    <input name="yx_coupon" value="0" {if !$system['yx_coupon'] || $system['yx_coupon']==0} checked="checked"{/if} type="radio"> 关闭
                                </label>
                                <label class="radio-inline">
                                    <input name="yx_coupon" value="1" {if $system['yx_coupon']==1} checked="checked"{/if} type="radio"> 开启
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-xs-12 control-label">夺宝</label>
                            <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
                                <label class="radio-inline">
                                    <input name="invite_gift" value="0" {if !$system['invite_gift'] || $system['invite_gift']==0} checked="checked"{/if} type="radio"> 关闭
                                </label>
                                <label class="radio-inline">
                                    <input name="invite_gift" value="1" {if $system['invite_gift']==1} checked="checked"{/if} type="radio"> 开启
                                </label>
                                <span class="help-block" style="color: red;">仅支持新版本小程序以及H5,17与18后台请联系技术确认</span>
                            </div>
                        </div>
<!--                        <div class="form-group"><label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">通用化优惠券</label>-->
<!--                            <div class="col-sm-8 col-xs-12">-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="yx_coupon"  value="0" {if !$system['yx_coupon'] }checked="checked"{/if}> 关闭-->
<!--                                </label>-->
<!--                                <label class="radio-inline">-->
<!--                                    <input type="radio" name="yx_coupon"  value="1" {if $system['yx_coupon'] == '1'}checked="checked"{/if}> 抵扣-->
<!--                                </label>-->
<!--                            </div>-->
<!--                        </div>-->
                    </div>
                </div>

                <div class="panel panel-default " role="tabpanel"  style="">
                    <div class="panel-heading">权限设置</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">添加超级管理员密码</label>
                            <div class="col-sm-4 col-xs-6">
                                <input type="text" class="form-control"  placeholder="" name="adminpass"  value="{$system['adminpass']}">
                            </div>
                        </div>

                        {if $system['softstyle']==109}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">最大商家数</label>
                            <div class="col-sm-4 col-xs-6">
                                <input type="number" class="form-control"  placeholder="" name="max_sj_num"  value="{$system['max_sj_num']}">
                                <span class="help-block">【教培模式下生效】默认为0 不限制商家数</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label"><span style="color: red;">*</span>是否锁定商家编辑</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="lock_sj_edit"  value="0" {if $system['lock_sj_edit'] != '1' && !$system['lock_sj_edit']}checked="checked"{/if}> 否
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="lock_sj_edit"  value="1" {if $system['lock_sj_edit'] == '1'}checked="checked"{/if}> 是
                                </label>
                            </div>
                        </div>
                        {/if}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label"><span style="color: red;">*</span>团队设置</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="teammax" id="inlineRadio1" value="0" {if $system['teammax'] != '1' && $system['teammax'] != '2'}checked="checked"{/if}> 20个团队
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="teammax" id="inlineRadio1" value="1" {if $system['teammax'] == '1'}checked="checked"{/if}> 30个团队加收500元
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="teammax" id="inlineRadio1" value="2" {if $system['teammax'] == '2'}checked="checked"{/if}> 50个团队加收1000元
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label"><span style="color: red;">*</span>最大员工数</label>
                            <div class="col-sm-10 col-xs-6">
                                <label class="radio-inline">
                                    <input type="radio" name="worker_max" id="inlineRadio1" value="100" {if $system['worker_max'] <200}checked="checked"{/if}> 100人
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="worker_max" id="inlineRadio1" value="200" {if $system['worker_max'] == 200}checked="checked"{/if}> 200人加收1000元
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="worker_max" id="inlineRadio1" value="300" {if $system['worker_max'] == 300}checked="checked"{/if}> 300人加收2000元
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="worker_max" id="inlineRadio1" value="400" {if $system['worker_max'] == 400}checked="checked"{/if}> 400人加收3000元
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="worker_max" id="inlineRadio1" value="500" {if $system['worker_max'] == 500}checked="checked"{/if}> 500人加收4000元
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="worker_max" id="inlineRadio1" value="5000" {if $system['worker_max'] > 500}checked="checked"{/if}> 500人以上加收5000元
                                </label>
                                <span class="help-block">超过200人的线上活动，必须报备；异业模式的，免收员工费用，但分店模式的不可以用异业做</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">活动结束后</label>
                            <div class="col-sm-9 col-xs-12">
                                <select name="endday" >
                                    <option value="0" {if $system['endday'] == 0 }selected="selected"{/if}>默认：5天关闭分销功能 开启水印</option>
                                    <option value="10" {if $system['endday'] == 10 }selected="selected"{/if}>10天关闭分销功能 开启水印</option>
                                    <option value="15" {if $system['endday'] == 15 }selected="selected"{/if}>15天关闭分销功能 开启水印</option>
                                    <option value="30" {if $system['endday'] == 30 }selected="selected"{/if}>30天关闭分销功能 开启水印</option>
                                    <option value="60" {if $system['endday'] == 60 }selected="selected"{/if}>60天关闭分销功能 开启水印</option>
                                    <option value="3650" {if $system['endday'] == 3650 }selected="selected"{/if}>不开启水印</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">图文编辑</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="tuwen" id="inlineRadio1" value="0" {if $system['tuwen'] != '1'}checked="checked"{/if}> 自动
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="tuwen" id="inlineRadio1" value="1" {if $system['tuwen'] == '1'}checked="checked"{/if}> 永久可编辑
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="tuwen" id="inlineRadio1" value="2" {if $system['tuwen'] == '2'}checked="checked"{/if}> 不可编辑
                                </label>
                                <span class="help-block">自动:活动开启5天后,自动关闭客户图文修改权限</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">视频播放按扭</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="video_button" id="inlineRadio1" value="0" {if $system['video_button'] != '1'}checked="checked"{/if}> 默认居中
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="video_button" id="inlineRadio1" value="1" {if $system['video_button'] == '1'}checked="checked"{/if}> 自定义左右位置
                                </label>
                                <span class="help-block">仅支持小程序</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel panel-default tab-pane " role="tabpanel" id="payset">
                <div class="panel-heading">H5参数{php echo $is_not_h5==1?'<span style="color: red">【此服务器不可使用H5】</span>':'';}</div>
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">绑定公众号</label>
                        <div class="col-sm-9 col-xs-12">
                            <select id="mpid" name="mpid" >
                                {loop $mplist $key $row}
                                <option value="{$row['id']}" {if $_G['mpid'] == $row['id']}selected="selected"{/if}>{$row['id']} _ {$row['name']}{php echo DOMAIN1 == "www.yixuan.net"?'【共有 ' . $row['used'] .' 个】':'';}</option>
                                {/loop}
                            </select>
                            <span class="help-block"><a href="/web/index.php?c=home&a=welcome&serarch_soft=1&uniacid={$system['wxapp']}">查看软件列表</a></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">appid</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="appid" value="{$system['appid']}" class="form-control"{php echo $is_not_h5==1?' disabled':'';}>
                            <span class="help-block">若支付信息出错，请清空，再保存</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">secret</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="secret" value="{$system['secret']}" class="form-control"{php echo $is_not_h5==1?' disabled':'';}>
                        </div>
                    </div>
                    {if DOMAIN1=='www.yixuan.net' || empty($system['s']['mchid2'])}
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">mchid</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="mchid" value="{$system['mchid']}" class="form-control"{php echo $is_not_h5==1?' disabled':'';}>
                        </div>
                    </div>
                    {else}
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">mchid</label>
                        <div class="col-sm-9 col-xs-12">
                            <div class="input-group">
                                <span class="input-group-addon">收款</span>
                                <input type="text" name="mchid" value="{$system['mchid']}" class="form-control"{php echo $is_not_h5==1?' disabled':'';}>
                                <span class="input-group-addon">发红包</span>
                                <input type="text" name="mchid2" disabled value="{$system['s']['mchid2']}" class="form-control">
                            </div>
                        </div>
                    </div>
                    {/if}
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">apikey</label>
                        <div class="col-sm-9 col-xs-12">
                            <div class="input-group">
                                <input type="text" name="apikey" value="{$system['apikey']}" id="apikey"  class="form-control" {php echo $is_not_h5==1?' disabled':'';}>
                                <a href="javascript:;" class="input-group-addon" onclick="tokenGen()">生成新的秘钥</a>
                            </div>
                            {if $_G['username']=='benben'}
                            {if !empty($system['appid_old'])}
                            <span class="help-block">appid_old:{$system['appid_old']}</span>
                            {/if}
                            {if !empty($system['secret_old'])}
                            <span class="help-block">secret_old:{$system['secret_old']}</span>
                            {/if}
                            {if !empty($system['mchid_old'])}
                            <span class="help-block">mchid_old:{$system['mchid_old']}</span>
                            {/if}
                            {if !empty($system['apikey_old'])}
                            <span class="help-block">apikey_old:{$system['apikey_old']}</span>
                            {/if}
                            {if !empty($system['apiclient_cert_old'])}
                            <span class="help-block">apiclient_cert_old:{$system['apiclient_cert_old']}</span>
                            {/if}
                            {if !empty($system['apiclient_key_old'])}
                            <span class="help-block">apiclient_key_old:{$system['apiclient_key_old']}</span>
                            {/if}
                            {/if}
                        </div>
                    </div>
                    {if empty($system['s']['yixuancert'])}
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">证书序列号</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="serial_no" value="{$system['serial_no']}" class="form-control"{php echo $is_not_h5==1?' disabled':'';}>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">商户支付证书</label>
                        <div class="col-sm-4 col-xs-6">
                            <input name="apiclient_cert" type="hidden"  class="form-control" value="{$system['apiclient_cert']}"/>
                            <input name="apiclient_cert_file" type="file"  accept=".pem" class="form-control" value=""/>
                            {if empty($system['apiclient_cert'])}
                            <span class="help-block">下载支付证书, 解压并取得其中的 <mark>apiclient_cert.pem</mark>上传此文件</span>
                            {else}
                            <span class="help-block"><mark style="background: #5cb85c;color: #ffffff;">证书{php echo strpos($system['apiclient_cert'], '/auto/') !== false?'自动':'';}已上传</mark>，如需更新可直接覆盖上传{$system['apiclient_cert']}</span>
                            {/if}
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">支付证书私钥</label>
                        <div class="col-sm-4 col-xs-6">
                            <input name="apiclient_key" type="hidden"  class="form-control" value="{$system['apiclient_key']}"/>
                            <input name="apiclient_key_file" type="file"  accept=".pem"  class="form-control" value=""/>
                            {if empty($system['apiclient_key'])}
                            <span class="help-block">下载支付证书, 解压并取得其中的 <mark>apiclient_key.pem</mark>上传此文件</span>
                            {else}
                            <span class="help-block"><mark style="background: #5cb85c;color: #ffffff;">证书{php echo strpos($system['apiclient_key'], '/auto/') !== false?'自动':'';}已上传</mark>，如需更新可直接覆盖上传{$system['apiclient_key']}</span>
                            {/if}
                        </div>
                    </div>
                    {/if}
                </div>
            </div>

            <div class="tab-pane " id="xcx">

                <div class="panel panel-default " role="tabpanel"  style="">
                    <div class="panel-heading">小程序参数</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">绑定小程序</label>
                            <div class="col-sm-9 col-xs-12">
                                <select id="wxapp" name="wxapp" >
                                    {if DOMAIN0 == "17.yixuan.net" || DOMAIN0 == "18.yixuan.net"}
                                    <option value="0">不使用小程序</option>
                                    {/if}

                                    {loop $accountlist $row}
                                    <option value="{$row['id']}" {if $system['wxapp'] == $row['id'] || (DOMAIN0 != "17.yixuan.net" && DOMAIN0 != "18.yixuan.net" && empty($system['wxapp']) && $row['appid']==current($wxapp_list)['appid']) }selected="selected"{/if}>{$row['id']} _ {$row['name']}【{php echo DOMAIN0 == "17.yixuan.net" || DOMAIN0 == "18.yixuan.net"?'共有':'进行中';} {$wxapp_list[$row['appid']]['used']} 个】</option>
                                    {/loop}
                                </select>
                                <span class="help-block"><a href="/web/index.php?c=home&a=welcome&serarch_soft=1&uniacid={$system['wxapp']}">查看软件列表</a></span>
                            </div>
                        </div>
                        {if DOMAIN1 == "www.yixuan.net" && !empty($auth_list)}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">授权头像</label>
                            <div class="col-sm-9 col-xs-12">
                                <select name="auth_mp" >
                                    <option value="0">当前小程序</option>
                                    {loop $auth_list $index $row}
                                    <option value="{$row['id']}" {if $system['auth_mp'] == $row['id']  || (DOMAIN0 != "17.yixuan.net" && DOMAIN0 != "18.yixuan.net" && empty($system['wxapp']) && $row['id']==$system['s']['auth_mp'])}selected="selected"{/if}>
                                    {$row['name']}
                                    {php echo $row['id']==$system['s']['auth_mp']?'【默认】':'';}
                                    {php echo $row['softmode']==4?'【小程序】':'';}
                                    {php echo $row['softmode']==6?'【开发】':'';}
                                    </option>
                                    {/loop}
                                </select>
                            </div>
                        </div>
                        {else}
<!--                        <div class="form-group">-->
<!--                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">授权头像</label>-->
<!--                            <div class="col-sm-9 col-xs-12">-->
<!--                                <select name="auth_mp" >-->
<!--                                    <option value="-1">当前小程序</option>-->
<!--                                    {if !empty($system['s']['auth_mp'])}-->
<!--                                    <option value="{$system['s']['auth_mp']}" {if $system['auth_mp'] == $system['s']['auth_mp']}selected="selected"{/if}>{$auth_list[$system['s']['auth_mp']]['name']}</option>-->
<!--                                    {/if}-->
<!--                                </select>-->
<!--                            </div>-->
<!--                        </div>-->
                        {/if}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">appid</label>
                            <div class="col-sm-9 col-xs-12">
                                <input type="text" name="appidxcx" value="{$system['appidxcx']}" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">secret</label>
                            <div class="col-sm-9 col-xs-12">
                                <input type="text" name="secretxcx" value="{$system['secretxcx']}" class="form-control">
                            </div>
                        </div>
                        {if DOMAIN1=='www.yixuan.net' || empty($system['s']['mchid2xcx'])}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">mchid</label>
                            <div class="col-sm-9 col-xs-12">
                                <input type="text" name="mchidxcx" value="{$system['mchidxcx']}" class="form-control">
                            </div>
                        </div>
                        {else}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">mchid</label>
                            <div class="col-sm-9 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon">收款</span>
                                    <input type="text" name="mchidxcx" value="{$system['mchidxcx']}" class="form-control">
                                    <span class="input-group-addon">发红包</span>
                                    <input type="text" name="mchidxcx2" disabled value="{$system['s']['mchid2xcx']}" class="form-control">
                                </div>
                            </div>
                        </div>
                        {/if}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">apikey</label>
                            <div class="col-sm-9 col-xs-12">
                                <input type="text" name="apikeyxcx" value="{$system['apikeyxcx']}" class="form-control">
                                {if $_G['username']=='benben'}
                                {if !empty($system['appidxcx_old'])}
                                <span class="help-block">appidxcx_old:{$system['appidxcx_old']}</span>
                                {/if}
                                {if !empty($system['secretxcx_old'])}
                                <span class="help-block">secretxcx_old:{$system['secretxcx_old']}</span>
                                {/if}
                                {if !empty($system['mchidxcx_old'])}
                                <span class="help-block">mchidxcx_old:{$system['mchidxcx_old']}</span>
                                {/if}
                                {if !empty($system['apikeyxcx_old'])}
                                <span class="help-block">apikeyxcx_old:{$system['apikeyxcx_old']}</span>
                                {/if}
                                {if !empty($system['apiclient_certxcx_old'])}
                                <span class="help-block">apiclient_certxcx_old:{$system['apiclient_certxcx_old']}</span>
                                {/if}
                                {if !empty($system['apiclient_keyxcx_old'])}
                                <span class="help-block">apiclient_keyxcx_old:{$system['apiclient_keyxcx_old']}</span>
                                {/if}
                                {/if}
                            </div>
                        </div>
                        {if empty($system['s']['yixuancertxcx'])}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">证书序列号</label>
                            <div class="col-sm-9 col-xs-12">
                                <input type="text" name="serial_no_xcx" value="{$system['serial_no_xcx']}" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">商户支付证书</label>
                            <div class="col-sm-4 col-xs-6">
                                <input name="apiclient_certxcx" type="hidden"  class="form-control" value="{$system['apiclient_certxcx']}"/>
                                <input name="apiclient_cert_filexcx" type="file"  accept=".pem" class="form-control" value=""/>
                                {if empty($system['apiclient_certxcx'])}
                                <span class="help-block">下载支付证书, 解压并取得其中的 <mark>apiclient_cert.pem</mark>上传此文件</span>
                                {else}
                                <span class="help-block"><mark style="background: #5cb85c;color: #ffffff;">证书{php echo strpos($system['apiclient_certxcx'], '/auto/') !== false?'自动':'';}已上传</mark>，如需更新可直接覆盖上传{$system['apiclient_certxcx']}</span>
                                {/if}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">支付证书私钥</label>
                            <div class="col-sm-4 col-xs-6">
                                <input name="apiclient_keyxcx" type="hidden"  class="form-control" value="{$system['apiclient_keyxcx']}"/>
                                <input name="apiclient_key_filexcx" type="file"  accept=".pem"  class="form-control" value=""/>
                                {if empty($system['apiclient_keyxcx'])}
                                <span class="help-block">下载支付证书, 解压并取得其中的 <mark>apiclient_key.pem</mark>上传此文件</span>
                                {else}
                                <span class="help-block"><mark style="background: #5cb85c;color: #ffffff;">证书{php echo strpos($system['apiclient_keyxcx'], '/auto/') !== false?'自动':'';}已上传</mark>，如需更新可直接覆盖上传{$system['apiclient_keyxcx']}</span>
                                {/if}
                            </div>
                        </div>
                        {/if}
                    </div>
                </div>


                <div class="panel panel-default " role="tabpanel"  style="">
                    <div class="panel-heading">小程序配置</div>
                    <div class="panel-body">

                        <div class="form-group"><label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">H5转小程序</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="pn_wxapp" id="pn_wxapp" value="0" {if !$system['pn_wxapp'] }checked="checked"{/if}> 关闭
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="pn_wxapp" id="pn_wxapp" value="2" {if $system['pn_wxapp'] == '2'}checked="checked"{/if}> 启用分享模式
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="pn_wxapp" id="pn_wxapp" value="3" {if $system['pn_wxapp'] == '3'}checked="checked"{/if}> 支付后才可分享模式
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="pn_wxapp" id="pn_wxapp" value="1" {if $system['pn_wxapp'] == '1'}checked="checked"{/if}> 禁用分享模式
                                </label>
                                <span class="help-block">H5转小程序，需服务器开通小程序与H5方有效</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">小程序直播功能</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="live" id="inlineRadio1" value="0" {if $system['live'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="live" id="inlineRadio1" value="1" {if $system['live'] == '1'}checked="checked"{/if}> 启用
                                </label>
                            </div>
                        </div>
                        <!--  <div class="form-group">
                               <label class="col-xs-12 col-sm-3 col-md-2 control-label">小程序开播通知</label>
                               <div class="col-sm-9 col-xs-12">
                                   <input type="text" name="livetemplate" value="{$system['livetemplate']}" class="form-control">
                                   <span class="help-block">家电/数码/手机  | 标题：直播开播提醒</span>
                               </div>
                         </div> -->
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">直播抽奖功能</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="live_lottery" id="inlineRadio1" value="0" {if $system['live_lottery'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="live_lottery" id="inlineRadio1" value="1" {if $system['live_lottery'] == '1'}checked="checked"{/if}> 启用
                                </label>
                                <!-- <span class="help-block">可用于成交后进群，也可用于成交后发送制作相册等二维码</span> -->
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">管理后台</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="wxapp_worker" id="inlineRadio1" value="0" {if $system['wxapp_worker'] != '1'}checked="checked"{/if}> 小程序自身
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="wxapp_worker" id="inlineRadio1" value="1" {if $system['wxapp_worker'] == '1'}checked="checked"{/if}> 借用H5管理
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">小程序演示案例</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="wxapp_demo" id="inlineRadio1" value="0" {if $system['wxapp_demo'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="wxapp_demo" id="inlineRadio1" value="1" {if $system['wxapp_demo'] == '1'}checked="checked"{/if}> 启用
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">小程序多个互通</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="wxapp_hutong" id="inlineRadio1" value="0" {if $system['wxapp_hutong'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="wxapp_hutong" id="inlineRadio1" value="1" {if $system['wxapp_hutong'] == '1'}checked="checked"{/if}> 启用
                                </label>
                            </div>
                        </div>
                    </div>
                </div>

            </div>

            <div class="tab-pane " id="oem">

                <div class="panel panel-default " role="tabpanel"  style="">
                    <div class="panel-heading">领泽定制</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">五锦拼霸王</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="iskoi" id="inlineRadio1" value="0" {if $system['iskoi'] != '1'}checked="checked"{/if}> 关闭
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="iskoi" id="inlineRadio1" value="1" {if $system['iskoi'] == '1'}checked="checked"{/if}> 开启
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">宝妈拼拼看</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="is_lz_game" id="inlineRadio1" value="0" {if $system['is_lz_game'] != '1'}checked="checked"{/if}> 游戏关闭
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="is_lz_game" id="inlineRadio1" value="1" {if $system['is_lz_game'] == '1'}checked="checked"{/if}> 游戏开启
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">新宝箱</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="is_lz_chest" id="inlineRadio1" value="0" {if $system['is_lz_chest'] != '1'}checked="checked"{/if}> 关闭
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="is_lz_chest" id="inlineRadio1" value="1" {if $system['is_lz_chest'] == '1'}checked="checked"{/if}> 开启
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">拼团评论弹幕</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="is_lz_comment" id="inlineRadio1" value="0" {if $system['is_lz_comment'] != '1'}checked="checked"{/if}> 关闭
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="is_lz_comment" id="inlineRadio1" value="1" {if $system['is_lz_comment'] == '1'}checked="checked"{/if}> 开启
                                </label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel panel-default " role="tabpanel"  style="">
                    <div class="panel-heading">领泽定制停用</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">大转盘抽奖</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="islottery" id="inlineRadio1" value="0" {if $system['islottery'] != '1'}checked="checked"{/if}> 关闭
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="islottery" id="inlineRadio1" value="1" {if $system['islottery'] == '1'}checked="checked"{/if}> 开启
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">积分赢豪礼</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="ispoints" id="inlineRadio1" value="0" {if $system['ispoints'] != '1'}checked="checked"{/if}> 关闭
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="ispoints" id="inlineRadio1" value="1" {if $system['ispoints'] == '1'}checked="checked"{/if}> 开启
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">群二维码</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="iswechatgroup" id="inlineRadio1" value="0" {if $system['iswechatgroup'] != '1'}checked="checked"{/if}> 关闭
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="iswechatgroup" id="inlineRadio1" value="1" {if $system['iswechatgroup'] == '1'}checked="checked"{/if}> 开启
                                </label>
                                <span class="help-block">弹出领取提示，提示中包含领取注意事项，以及群二维码，因礼品正在统计中，领取时间奖在群里公布，请扫码关注</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">群二维码展示数</label>
                            <div class="col-sm-4 col-xs-6">
                                <input type="text" class="form-control"  placeholder="" name="wechatgroupmax"  value="{$system['wechatgroupmax']}">
                                <span class="help-block">群二维码展示给多少个用户，默认为200,因有的用户并不识别二维码进入故可根据实际情况调大</span>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="panel panel-default " role="tabpanel"  style="">
                    <div class="panel-heading">曦尊定制</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">砍价邀请好友有礼</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="bargain_gift" id="inlineRadio1" value="0" {if $system['bargain_gift'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="bargain_gift" id="inlineRadio1" value="1" {if $system['bargain_gift'] == '1'}checked="checked"{/if}> 启用
                                </label>
                                <span class="help-block">如：砍价需要10人帮砍，帮砍人数达到5人时可获得10寸摆台1个</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel panel-default " role="tabpanel"  style="">
                    <div class="panel-heading">安宏定制</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">会员积分</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="is_member_points" id="inlineRadio1" value="0" {if $system['is_member_points'] != '1'}checked="checked"{/if}> 禁用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="is_member_points" id="inlineRadio1" value="1" {if $system['is_member_points'] == '1'}checked="checked"{/if}> 启用
                                </label>
                                <span class="help-block">如：将储值卡功能改为积分功能，客户可以前端随时查看</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="panel panel-default tab-pane " role="tabpanel" id="mbxx">
                <div class="panel-heading">模版消息</div>
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label"><span class="text-danger">*</span>是否启用</label>
                        <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
                            <label class="radio-inline">
                                <input name="noticeopen" value="0" {if $system['noticeopen']==0} checked="checked"{/if} type="radio"> 暂停
                            </label>
                            <label class="radio-inline">
                                <input name="noticeopen" value="1" {if $system['noticeopen']==1} checked="checked"{/if} type="radio"> 启用
                            </label>
                        </div>
                    </div>
                    {if $system['tixing']==3}
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">新订单通知</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="neworder" value="{$system['neworder']}" class="form-control">
                            <span class="help-block">模版消息：类目[商家自营]/[办公/文具],申请：模板编号44298 选择：商品名称、订单类型、客户名称、客户电话、下单时间</span>
                        </div>
                    </div>
                    {/if}

                    {if $system['ruanjian'] != 5}
                    {if !($system['is_mystery_boxes'] == 1 || $system['is_mystery_boxes_feichi'] == 1)}
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">拼团成功通知</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="mb_group_success" value="{$system['mb_group_success']}" class="form-control">
                            <span class="help-block"> 商家自营 > 3C数码 > 拼团成功通知 【门店名称 成团人数 成团时间 温馨提示】</span>
                        </div>
                    </div>
                    {/if}
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">预约到店提醒</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="mb_group_goshop" value="{$system['mb_group_goshop']}" class="form-control">
                            <span class="help-block">商家自营 > 3C数码 > 预约到店提醒 【门店 地址 到店时间 温馨提示】</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">活动进度提醒</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="mb_group_progress" value="{$system['mb_group_progress']}" class="form-control">
                            <span class="help-block"> 商家自营 > 3C数码 > 活动进度提醒 【活动名称 活动时间 活动进度 温馨提示】</span>
                        </div>
                    </div>
                    {else}
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">砍价成功通知</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="mb_bargain_success" value="{$system['mb_bargain_success']}" class="form-control">
                            <span class="help-block"> 商业服务 > 摄影/扩印  > 砍价成功通知 【活动名称 活动原价 砍价金额 砍价状态】</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">砍价进度通知</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="mb_bargain_progress" value="{$system['mb_bargain_progress']}" class="form-control">
                            <span class="help-block"> 工具 > 预约/报名 > 砍价进度通知 【活动名称 砍价进度 温馨提醒】</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">砍价结果通知</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="mb_bargain_result" value="{$system['mb_bargain_result']}" class="form-control">
                            <span class="help-block"> 商业服务 > 摄影/扩印  > 砍价结果通知 【砍价商品 活动原价 砍后金额 砍价时间 温馨提示】</span>
                        </div>
                    </div>
                    {/if}

                    {if $system['is_mystery_boxes'] == 1 || $system['is_mystery_boxes_feichi'] == 1}
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">助力成功通知</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="mb_help_success" value="{$system['mb_help_success']}" class="form-control">
                            <span class="help-block"> 商家自营 > 3C数码 > 助力成功通知 【活动名称 助力人数 成功时间 温馨提示】</span>
                        </div>
                    </div>
                    {/if}
                    {if $system['ispresale']}
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">预售：新品开售提醒</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="mb_presale_new" value="{$system['mb_presale_new']}" class="form-control">
                            <span class="help-block"> 商家自营 > 3C数码 > 新品开售提醒 【新品名称 新品详情 开售时间】</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">预售：预约商品开售通知</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="mb_presale_sale" value="{$system['mb_presale_sale']}" class="form-control">
                            <span class="help-block"> 商家自营 > 3C数码 > 预约商品开售通知【商品名称 开售时间 备注】</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">预售：预售尾款支付提醒</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="mb_presale_payment" value="{$system['mb_presale_payment']}" class="form-control">
                            <span class="help-block"> 商家自营 > 3C数码 > 预售尾款支付提醒【商品名称 支付期限 温馨提示】</span>
                        </div>
                    </div>
                    {/if}
                </div>
            </div>
            <div class="tab-pane " id="hddr">
                {if $system['hdget'] !== 1 && $system['hdsend'] !== 1}
                <div class="panel panel-default tab-pane " role="tabpanel" >
                    <div class="panel-heading">活动导入</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">活动编号</label>
                            <div class="col-sm-8 col-xs-12">
                                <input type="text" name="hddrkey" value="" class="form-control">
                                <span class="help-block">编号：5位纯数字编号</span>
                            </div>
                        </div>
                    </div>
                </div>
                {/if}
                <div class="panel panel-default tab-pane " role="tabpanel" >
                    <div class="panel-heading">活动跳转</div>
                    <div class="panel-body">
                        {if $_G['username']=="benben"}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">清空密码</label>
                            <div class="col-sm-8 col-xs-12">
                                <input type="text" name="mima" value="" class="form-control">
                            </div>
                        </div>
                        {/if}
                        {if $system['hdget'] == '1'}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">接收活动</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="hdget" id="inlineRadio1" value="1" checked="checked"> 启用
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">活动跳转来自</label>
                            <div class="col-sm-8 col-xs-12">
                                <input type="text" name="hdsourceurl" readonly value="{$system['hdsourceurl']}" class="form-control">
                            </div>
                        </div>
                        {/if}

                        {if $system['hdsend'] == '1'}
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">跳转活动</label>
                            <div class="col-sm-8 col-xs-12">
                                <label class="radio-inline">
                                    <input type="radio" name="hdsend" id="inlineRadio1" value="1" checked="checked"> 启用
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">活动跳转至</label>
                            <div class="col-sm-8 col-xs-12">
                                <input type="text" name="hdsendurl" readonly value="{$system['hdsendurl']}" class="form-control">
                            </div>
                        </div>
                        {/if}

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">页面跳转</label>
                            <div class="col-sm-8 col-xs-12">
                                <input type="text" class="form-control"  placeholder="" name="tiaozhuanurl"  value="{$system['tiaozhuanurl']}" {if strpos($system['tiaozhuanurl'],'跳转至')!== false }readonly{/if}>
                                <span class="help-block">当此链接不再使用时,可跳转至新页面;</span>
                            </div>
                        </div>

                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-12">
                    <input name="submit" id="btn_submit" type="submit" value="提交" class="btn btn-primary col-lg-1">
                    <span class="help-block col-lg-3"> 可按 ctrl+s 快速保存</span>
                    <input type="hidden" name="__token__" value="{$Request.token}" />
                </div>
            </div>
    </form>
    {else}
    <div class="form-group">
        <div class="col-sm-12">
            <input name="submit" type="submit" value="无需操作" class="btn btn-primary col-lg-1">
        </div>
    </div>
    {/if}
</div>
<script language='javascript'>
    $(window).bind('keydown', function(event) {
        if (event.ctrlKey || event.metaKey) {
            switch (String.fromCharCode(event.which).toLowerCase()) {
                case 's':
                    event.preventDefault();
                    $("#btn_submit").click()
                    break;
            }
        }
    });

    function  tokenGen () {
        if (confirm("确定要修改密钥吗？")) {
            for (var a = "", n = 0; n < 32; n++){
                a += "abcdefghijklmnopqrstuvwxyz0123456789"[parseInt(32 * Math.random())];
            }
            $('#apikey').val(a);
        }
    }
    function submitForm(){
        var form = document.getElementById("myform");
        form.submit();
    }
</script>
